package com.mydemo.design_pattern.create_type.builder_pattern;

/**
 * <p></p >
 *
 * @author liming1
 * @version $Id: DemoTest, v1.0 2019-09-18 14:05 liming1 Exp $
 */
public class DemoTest {
    public static void main(String[] args) {
        MealBuilder mealBuilder = new MealBuilder();
        // 用户选择某一个
        Meal meal = mealBuilder.prepareNonVegMeal();
        Meal meal1 = mealBuilder.prepareVegMeal();
        meal.showItems();
        System.out.println("------------------------------");
        meal1.showItems();
    }
}
